<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script src="../js/jquery-2.1.4.js" type="text/javascript" charset="UTF-8"></script>
		<script src="../layer/layer.js" type="text/javascript" charset="UTF-8"></script>
		<script type="text/javascript">
			layer.ready(function(){
				// layer.msg("Hello layer!!!");//默认三秒
				// layer.msg("hello layer", {time:5000});
				layer.open({
					// type : 0,
					// content : "弹出的内容"
					// type : 1,
					// content : "hi!"
					type : 0,
					btn : ['按钮1', '按钮2', '按钮3'],
					yes : function(index){
						console.log('Yes'),
						layer.close(index)
					},
					btn2 : function(){
						console.log('hi')
					},
					btn3 : function(){
						console.log("hello")
					}
				});
			});
		</script>
	</body>
</html>
